// active 为实底风格类名，normal为线框风格
export const tabbars = [{
		title: "首页",
		iconName: {
			active:'shouyecopy',  
			normal:'shouyecopy'
		},
		routerName: "index"
	},
	{
		title: "资讯",
		iconName: {
			active:'homefill',
			normal:'home'
		},
		routerName: "news"
	}, {
		title: "课程",
		iconName: {
			active:'homefill',
			normal:'home'
		},
		routerName: "course"
	}, {
		title: "我的",
		iconName:{
			active:'homefill',
			normal:'home'
		},
		routerName: "my"
	}
]
export const getTabIndex = (routeName) => {
	let index;
	for(let i= 0;i<tabbars.length;i++){
		if(tabbars[i].routerName===routeName){
			index=i;
			break;
		}
	}
	return index ;
}
